(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/sunui-auth/sunui-auth" ], {
    "2a1b": function(t, e, n) {
        n.r(e);
        var o, u = n("df6e"), a = n("59cc");
        for (o in a) "default" !== o && function(t) {
            n.d(e, t, function() {
                return a[t];
            });
        }(o);
        n("d078");
        var i = n("f0c5"), u = Object(i.a)(a.default, u.b, u.c, !1, null, null, null, !1, u.a, void 0);
        e.default = u.exports;
    },
    "325f": function(t, e, n) {
        (function(o) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var t = {
                data: function() {
                    return {};
                },
                props: {
                    themeColor: {
                        type: String,
                        default: "#0FB74C"
                    },
                    miniLogo: {
                        type: String,
                        default: "http://b48.admin168.net/static/h5/img/icon.png"
                    },
                    miniName: {
                        type: String,
                        default: "水电开单宝"
                    },
                    authLogo: {
                        type: String,
                        default: ""
                    }
                },
                created: function() {},
                methods: {
                    updateUserInfo: function(e) {
                        var t, n = this;
                        console.info(e), "getUserInfo:fail auth deny" == e.detail.errMsg ? (this.$emit("fail"), 
                        this.close()) : Object.getOwnPropertyNames(e.detail.userInfo).length && (t = e.detail.userInfo, 
                        o.request({
                            url: this.$api.register,
                            method: "GET",
                            data: {
                                openid: wx.getStorageSync("openid"),
                                avatar: t.avatarUrl,
                                nickname: t.nickName
                            },
                            success: function(t) {
                                console.log("uesr", t), console.log("1", e.detail.userInfo), console.log("1", t.data.data), 
                                "request:ok" == t.errMsg && (wx.setStorageSync("userInfo", e.detail.userInfo), wx.setStorageSync("uid", t.data.data.id));
                            },
                            complete: function() {
                                n.close(), n.$emit("success");
                            }
                        }));
                    },
                    show: function() {
                        wx.getStorageSync("userInfo") ? this.$emit("success") : this.$refs.popup.show({
                            style: "background-color:#fff;width:100%;height:auto;overflow-x:auto;border-top-left-radius: 20rpx;border-top-right-radius: 20rpx;",
                            anim: "bottom",
                            position: "bottom",
                            shadeClose: !1
                        });
                    },
                    close: function() {
                        this.$refs.popup.close();
                    }
                }
            };
            e.default = t;
        }).call(this, n("543d").default);
    },
    "59cc": function(t, e, n) {
        n.r(e);
        var o, u = n("325f"), a = n.n(u);
        for (o in u) "default" !== o && function(t) {
            n.d(e, t, function() {
                return u[t];
            });
        }(o);
        e.default = a.a;
    },
    d078: function(t, e, n) {
        var o = n("dff99");
        n.n(o).a;
    },
    df6e: function(t, e, n) {
        function o() {
            this.$createElement, this._self._c;
        }
        var u = {
            sunuiPopup: function() {
                return n.e("components/sunui-popup/sunui-popup").then(n.bind(null, "c2fe"));
            }
        }, a = [];
        n.d(e, "b", function() {
            return o;
        }), n.d(e, "c", function() {
            return a;
        }), n.d(e, "a", function() {
            return u;
        });
    },
    dff99: function(t, e, n) {}
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/sunui-auth/sunui-auth-create-component", {
    "components/sunui-auth/sunui-auth-create-component": function(t, e, n) {
        n("543d").createComponent(n("2a1b"));
    }
}, [ [ "components/sunui-auth/sunui-auth-create-component" ] ] ]);